/**
 *
 * @author Eric Hushagen
 * updated for hey0 v117
 */

import java.util.logging.Logger;

public class ehSimpleJackListener extends PluginListener {

    protected static final Logger log = Logger.getLogger("Minecraft");

    public void onLogin(Player player) {
        if (player.getName().equals("SimpleJack")) {
            broadcast("THAT'S WHAT SHE SAID!");
            log.info("THAT'S WHAT SHE SAID!");
        }
    }
    
    public void broadcast(String yell) {
        for (Player p : etc.getServer().getPlayerList()) {
            if (p != null) {
                p.sendMessage(Colors.LightPurple + yell);
            }
        }
    }


}
